package club.banyuan.demo.sec.controller;

import club.banyuan.demo.sec.common.ApiResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/admin")
public class AdminController {

    @GetMapping("/hello")
    public ApiResponse hello() {
        return ApiResponse.success("Admin Hello");
    }

    @GetMapping("/user/list")
    public ApiResponse userList() {
        return ApiResponse.success("userList");
    }

    @GetMapping("/product/create")
    public ApiResponse productCreate() {
        return ApiResponse.success("productCreate");
    }

    @GetMapping("/product/list")
    public ApiResponse productList() {
        return ApiResponse.success("productList");
    }

    @GetMapping("/order/list")
    public ApiResponse orderList() {
        return ApiResponse.success("orderList");
    }

    @GetMapping("/order/create")
    public ApiResponse orderCreate() {
        return ApiResponse.success("orderCreate");
    }
}
